<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base>
    <title>序列号生成</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  <body class="easyui-layout" fit="true">
	<div region="center" border="false" style="overflow: hidden;">
		<div id="toolbar" class="datagrid-toolbar" style="height: auto;">
			
			<fieldset>
				<legend>查询条件</legend>
				<form id="copyrightValidateSearchForm" name="copyrightValidateSearchForm" >
				提交时间从<input id="createTimeStart" name="createTimeStart" class="easyui-datebox" />至<input id="createTimeEnd" name="createTimeEnd" class="easyui-datebox" />
				</form>
			</fieldset>
			<div align="right" >
				<a class="easyui-linkbutton" iconCls="icon-remove" onclick="copyrightValidateDownload();" plain="true" href="javascript:void(0);">下载license</a>
				<a class="easyui-linkbutton" iconCls="icon-undo" onclick="copyrightValidateDataGrid.datagrid('unselectAll');" plain="true" href="javascript:void(0);">取消选中</a>
				<a class="easyui-linkbutton" iconCls="icon-add" onclick="copyrightValidateAppend();" plain="true" href="javascript:void(0);">新增</a>
				<a class="easyui-linkbutton" iconCls="icon-edit" onclick="copyrightValidateEdit();" plain="true" href="javascript:void(0);">修改</a>
				<a class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="copyrightValidateLook();" href="javascript:void(0);">查看</a>
				<a class="easyui-linkbutton" iconCls="icon-remove" onclick="copyrightValidateRemove();" plain="true" href="javascript:void(0);">删除</a>
				<a class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="searchFun();" href="javascript:void(0);">查询</a>
				<a class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="copyrightValidateSearchFun();" href="javascript:void(0);">高级查询</a>
				<a class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="clearFun();" href="javascript:void(0);">清空</a>
			</div>
		</div>
		<table id="copyrightValidateDataGrid"></table>
	</div>
	
	<div id="menu" class="easyui-menu" style="width:120px;display: none;">
		<div onclick="copyrightValidateDataGrid.datagrid('unselectAll');" iconCls="icon-undo">取消选中</div>
		<div onclick="copyrightValidateLook();" iconCls="icon-search">查看</div>
		<div class="menu-sep"></div>
		<div onclick="searchFun();" iconCls="icon-search">查询</div>
		<div onclick="clearFun();" iconCls="icon-search">清空</div>
		<div class="menu-sep"></div>
		<div onclick="copyrightValidateAppend();" iconCls="icon-add">增加</div>
		<div onclick="copyrightValidateEdit();" iconCls="icon-edit">编辑</div>
		<div onclick="copyrightValidateRemove();" iconCls="icon-remove">删除</div>
		<div class="menu-sep"></div>
		<div onclick="copyrightValidateSearchFun();" iconCls="icon-search">高级查询</div>
	</div>
</body>
<script type="text/javascript">
var copyrightValidateDataGrid;
$(function() {
	copyrightValidateDataGrid = $('#copyrightValidateDataGrid').datagrid({
		//url :'/copyright/version/copyrightValidate/dataGridList',
		toolbar : '#toolbar',
		title : '信息列表',
		pagination : true,
		pageSize : 100,
		pageList : [ 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000 ],
		fit : true,
		fitColumns : true,
		nowrap : false,
		border : false,
		idField : 'id',
		frozenColumns : [ [ {
			title : 'id',
			field : 'id',
			width : 50,
			checkbox : true
		} ] ],
		columns : [ [
			{
			field : 'name',
			title : 'IP地址',
			width : 150,
			sortable : true
		}, 
			{
			field : 'content',
			title : '验证信息',
			width : 150,
			sortable : true
		}, 
			{
			field : 'validateTypeName',
			title : '验证标识',
			width : 150,
			sortable : true
		}, 
		{
			field : 'createUserName',
			title : '创建者',
			width : 150,
			sortable : true
		} , {
			field : 'createTime',
			title : '创建时间',
			width : 150,
			sortable : true
		}, {
			field : 'lastUpdateTime',
			title : '最后修改时间',
			width : 150,
			sortable : true
		}] ],
		onRowContextMenu : function(e, rowIndex, rowData) {
			e.preventDefault();
			$(this).datagrid('unselectAll');
			$(this).datagrid('selectRow', rowIndex);
			$('#menu').menu('show', {
				left : e.pageX,
				top : e.pageY
			});
		}
	});

});
</script>

</html>
